package cn.itcast.domain.page;

import cn.itcast.domain.delivery.Promotion;

import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;
import java.io.Serializable;
import java.util.List;
@XmlRootElement(name = "pageBean")  //定义数据webService通信过程中的根标签
@XmlSeeAlso(Promotion.class)//泛型数据 (pagebean带有泛型数据 需要使用该标签指定泛型数据)
public class PageBean<T> implements Serializable {
    private Long totalCount;//总记录数
    private List<T>pageData;//当前页数据

    public Long getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Long totalCount) {
        this.totalCount = totalCount;
    }

    public List<T> getPageData() {
        return pageData;
    }

    public void setPageData(List<T> pageData) {
        this.pageData = pageData;
    }
}
